forum

home / developersection / forums / sort an arraylist with datetime using c#

Sort an ArrayList with DateTime using C#

Madam Walker 3515 05-Oct-2013

 I need to sort the ArrayList based on the StartDate available in the system which is a DateTime variable.

public int id { get; set; }

public string name {get; set;}
public bool isAnctive { get; set; }
public string start { get; set; }
public string end { get; set; }
public DateTime startDate { get; set; }
public DateTime endDate { get; set; }
public string Location { get; set; }
public string Description { get; set; }

Can someone please enlighten me. I tried .Sort() but it just doesn’t do anything (its dump to try sort on ArrayList which has objects I know)

Thanks in advance!


c# c# 
Updated on 05-Oct-2013
Madam Walker

Other


Message
Can you answer this question?

Answer

1 Answers

Liked By